<div ng-controller="BasicsCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="">{{'预约'| translate}}</a></li>
        <li class="active">
            {{"基础设置"|translate}}
            <a href="#/basics/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
    </ul>
    <div>
        <newbasic-tab ng-model="tabType" click-tab="getlist()"></newbasic-tab>
        <!-- <resnews-time-list ng-show="tabType == 'timeslotstl'" schemaid="schemaid" periodtstlid="periodtstlid"></resnews-time-list> -->
        <table class="sui-table table-bordered">
            <thead>
                <tr>
                    <th>{{'id'|translate}}</th>
                    <th>{{'title'|translate}}</th>
                    <th>{{'operation'|translate}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="list in templates">
                    <td >{{list.template_id}}</td>
                    <td >{{list.title}}</td>
                    <td>
                        <!-- <resnews-cycle-list ng-show="tabType == 'periodst'" schemaid="schemaid"></resnews-cycle-list> -->
                        <edit-template tmpid="list.template_id"></edit-template>
                        <a ng-click="delete(list.template_id)" class="sui-btn btn-danger">{{'delete'|translate}}</a>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>